package cate.common.table.activity.fairynew.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.fairynew.row.FairyNewItemRow;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

public class FairyNewItemSheet extends ESheet<FairyNewItemRow> {
    @Override
    public String getSheetName() {
        return "灵器配置";
    }

    public List<FairyNewItemRow> getGroupItems(int fairyGroup){
        return getGroupItems(fairyGroup, new ArrayList<>());
    }

    public List<FairyNewItemRow> getGroupItems(int fairyGroup, List<Integer> exclude){
        return getList().stream().filter(e -> e.fairyGroup == fairyGroup && !exclude.contains(e.id)).collect(Collectors.toList());
    }
}
